Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

batch anonymous usage statistics calls #2089

Merged
merged 1 commit into from
Feb 4, 2020

Conversation

beckjake
Copy link
Contributor

@beckjake beckjake commented Feb 3, 2020

#2008

Move tracking to use POST instead of GET, and set up batching. I set it to 30 because the default of 10 seemed small for bigger projects, but 100 seemed too big.

This resulted in a substantial performance improvement when running dbt in locations far away from the US, and even a small improvement nearby. A run with 100 models from Mumbai went from ~78s to ~12s (with tracking disabled, ~3s). There are noticeable 1-2s stops every 30 models or so because the snowflake tracker blocks all threads from tracking while making the http call, but I think that's fine. On a US-based instance, performance was pretty much the same - maybe a slight improvement?

@cla-bot cla-bot bot added the cla:yes label Feb 3, 2020
Copy link
Contributor

@drewbanin drewbanin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks amazing!

A run with 100 models from Mumbai went from ~78s to ~12s (with tracking disabled, ~3s).

So glad we could quantify this. It's certainly not perfect, but I feel really great about the performance lift that this provides. Ship it!

@beckjake beckjake merged commit ccab27a into dev/barbara-gittings Feb 4, 2020
@beckjake beckjake deleted the feature/batched-tracking branch February 4, 2020 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants